<template>
    <div>
      <h3>标签的ref</h3>
      <h4 ref="today">今天天气真好</h4>
      <button @click="showH4">输出</button>
    </div>
  </template>
  
  <script setup>
  import { ref} from 'vue'
  let today = ref(12);
  console.log(today,'1');
  console.log(today.value,'2')
  
  let a1 = ref(0)
  let a2 = ref(1)
  let a3 = ref(2)
  function showH4() {
      console.log(today.value)
  }
  defineExpose({a1,a2,a3,today})
  </script>
  <style lang='scss' scoped>
  
  </style>